import { createApp } from 'vue'
import App from './App.vue'
import installElementPlus from './plugins/element'
import installSvgIcon from './icons'
import router from './router'
import store from './store'
import installFilters from './filters'
import installDirective from './directive'
import '@/assets/style/index.scss'
import './permission'
// const vueRequire = require.context('./views', true, /\.vue$/)
// vueRequire.keys().forEach(path => {
//   console.log(vueRequire(path))
// })

const app = createApp(App)
installElementPlus(app)
installSvgIcon(app)
installFilters(app)
installDirective(app)
app.use(store).use(router).mount('#app')

export default app
